package com.ht.medicaltreatment.viewmodel

import androidx.lifecycle.viewModelScope
import com.xgst.lib.http.ApiResult
import kotlinx.coroutines.launch

class InViewModel : BaseViewModel() {
    fun requestInfo(orderId:String/*,onSuccess:()->Unit*/){
        viewModelScope.launch {
            val bean = mApi.requestInDetail(orderId)
            when(bean){
                is ApiResult.Success -> {

                }

                is ApiResult.Error -> {

                }
            }
        }
    }

}
